package com.suse.jd_system_server.controller;

import com.suse.jd_system_server.auto.empty.Result;
import com.suse.jd_system_server.service.BedService_lhj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/BedURLlhj")
@CrossOrigin
public class BedController_lhj {
    @Autowired
    private BedService_lhj bedservice;
    /**
     根据Com_id查询
     */
    @GetMapping("/searchbed/{room_id}")
    public Result searchbed(@PathVariable(value = "room_id") Long room_id){
        return Result.buildSuccess(bedservice.searchbed(room_id));
    }
}